package pojo.bean;

public class Course {
    private int courseId;

    private String courseName;

    private int specialtyId;

    private int stageId;

    public Course() {}

    public Course(int specialtyId, int stageId) {
        this.specialtyId = specialtyId;
        this.stageId = stageId;
    }

    public int getCourseId() {
        return courseId;
    }

    public void setCourseId(int courseId) {
        this.courseId = courseId;
    }

    public String getCourseName() {
        return courseName;
    }

    public void setCourseName(String courseName) {
        this.courseName = courseName == null ? null : courseName.trim();
    }

    public int getSpecialtyId() {
        return specialtyId;
    }

    public void setSpecialtyId(int specialtyId) {
        this.specialtyId = specialtyId;
    }

    public int getStageId() {
        return stageId;
    }

    public void setStageId(int stageId) {
        this.stageId = stageId;
    }

    @Override
    public String toString() {
        return "Course [courseId=" + courseId + ", courseName=" + courseName + ", specialtyId=" + specialtyId
            + ", stageId=" + stageId + "]";
    }
}